import { defineStore } from 'pinia'

export const useCounterStore = defineStore('counter', {
  state: () => ({
    // 存用户的重要数据
    userData: {},
    userInfo: {
      userName: '',
      avatarUrl: '',
      gender: null
    },
    showLoading: false
  }),
  persist: {
    storage: {
      getItem: uni.getStorageSync,
      setItem: uni.setStorageSync,
      removeItem: uni.removeStorageSync
    }
  }
})
